function getpara(key)//获取参数的函数
{
	var url = document.URL;
	if (url.lastIndexOf("?") > 0) {
		para = url.substring(url.lastIndexOf("?") + 1, url.length);
		var arr = para.split("&");
		for (var i = 0; i < arr.length; i++) {
			var k = arr[i].split("=")[0];
			var v = arr[i].split("=")[1];
			if(k == key){
				return v;
			}
		}
	} 
}


function jump(type){
	window.location.href='?type='+type+'&rid='+getpara('rid');
}